<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <form:form modelAttribute="binderCommand" action="${pageContext.request.contextPath}/binder/submit">
        用户名：<form:input path="username"></form:input><br/>

        坐标：<form:input path="point.x"></form:input>
            <form:input path="point.y"></form:input><br/>

        坐标：<form:input path="p"></form:input><form:errors path="p"></form:errors><br/>

        生日：<form:input path="birthday"></form:input><br/>

        地址：<form:input path="address"></form:input><br/>

        <form:button>提交</form:button>

        <hr/>
        <form:errors path="*"></form:errors>

        <hr/>
        <form:errors path="p"></form:errors>

        <hr/>
        <form:errors path="*" cssStyle="color: red;"></form:errors>
    </form:form>

    ${errors}<br/>
    <c:forEach items="${errors}" var="error">
        <li>${error.value}</li>
    </c:forEach>
</body>
</html>
